import Server from "../request";

import { hostURL } from "../utils/config";

const api = new Server(hostURL)
class OrderApi {

    async list() {
        return api.get('/order')
    }

    async modify(param) {
        return api.post('/order/modify', param)
    }

    async getById(param) {
        return api.post('/order/find/id', param)
    }

}

export default new OrderApi;